﻿$(document).ready(function () {
    $(".group2").colorbox({ rel: 'group2', transition: "fade" });

    $("a.popup").on('click', function () {
        var src = $(this).attr('href');
        //alert(src);
        var previewDialog = $('<iframe id="editDialogAddCard" frameborder="0" src="' + src + '" />').dialog({
            closeText: "", width: 860, height: 440, modal: true, close: function () {
                try {
                    previewDialog.remove();
                    //endLoading();
                } catch (err) { }
            }
        }).width(808).height(440);
        return false;
    });
});